package com.rongxue.mapper;

import com.rongxue.pojo.Message;
import com.rongxue.pojo.MessagePersonal;
import com.rongxue.pojo.Question;

import java.util.List;

/**
 * Created by yangweijian on 2018/1/23.
 */
public interface SMessagePersonalMapper {
    //个人消息
    List<MessagePersonal> selectMessagePersonalByUserId(String userId);
    //系统消息
    List<Message> selectMessageList();
    //最新公告
    Message selectMessageLast();
    //系统消息详情
    String selectMessageDetail(Integer id);
    //常见问题
    List<Question> selectQestionList();
    //单条消息已读
    void updateIsReadByid(String id);
    //个人信息未读条数
    Integer selectMessageUnreadCountByUserId(String userId);
}
